using System;
using Microsoft.SPOT;

namespace Enough.Connectivity
{
    public delegate void BinaryConnectionDataReceived(IBinaryConnection sender, byte[] data);
    public delegate void BinaryConnectionStringReceived(IBinaryConnection sender, string data);

    public interface IBinaryConnection
    {
        BinaryConnectionDataReceived OnDataReceived { get; set; }
        BinaryConnectionStringReceived OnStringReceived { get; set; }

        void SendData(byte[] data);
    }
}
